import httpx,requests

url = 'https://www.ems.com.cn/ems-web/loginJump/getLoginJump'
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36',
    'Accept': 'application/json, text/plain, */*',
    'Accept-Encoding': 'gzip, deflate, br',
    'Accept-Language': 'zh-CN,zh;q=0.9',
    'Connection': 'keep-alive',
    'Content-Length': '24',
    'Content-Type': 'application/json;charset=UTF-8',
    'Host': 'www.ems.com.cn',
    'Origin': 'https://www.ems.com.cn',
    'Referer': 'https://www.ems.com.cn/',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-origin'
}
data = '{"value":{"rout":"/#/"}}'
res = requests.post(url,headers=headers,data=data)
print(res)
print(res.text)
print(res.headers)

# url = 'https://www.ems.com.cn/pc/login/index?_url=LyMv&from=emsnew'
# headers = {
#     'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
#     'Accept-Encoding': 'gzip, deflate, br',
#     'Accept-Language': 'zh-CN,zh;q=0.9',
#     'Connection': 'keep-alive',
#     'Cookie': 'SESSION=f4538ad0-ad3e-432a-9b25-dfbe74e59288',
#     'Host': 'www.ems.com.cn',
#     'Referer': 'https://www.ems.com.cn/',
#     'Sec-Fetch-Dest': 'document',
#     'Sec-Fetch-Mode': 'navigate',
#     'Sec-Fetch-Site': 'same-origin',
#     'Sec-Fetch-User': '?1',
#     'Upgrade-Insecure-Requests': '1',
#     'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36'
# }
# res = requests.get(url,headers=headers)
# print(res.headers)
# print(res)